
<div class="widget">
    <?php echo $form->renderFormTag('#', array('id' => 'form', 'method' => "post", "class" => "form2")) ?>
<?= $form->renderHiddenFields() ?>
            <div class="title">
                <?= image_tag('icons/control/16/business-contact.png', array("class" => "titleIcon")); ?>
                <h6>Customer info</h6>
                <div class="num"><a class="greenNum" href="javascript:void(0);" onClick="editCustomer(<?= $customer_id ?>,'save')">Save</a></div>
                <div class="num"><a class="greyishNum" href="javascript:void(0);" onClick="editCustomer(<?= $customer_id ?>,'cancel')">Cancel</a></div>
            </div>
            <div class="newOrder">
                <div class="userRow">
                    <?= image_tag('user.png', array("class" => "floatL")); ?>
                    <ul class="leftList">
                        <li><strong><?php echo $form['customer_name']->render(array('style'=>'width: 72%;')); ?></strong>
                        <label for="title_id" generated="true" class="error"><?= $form['customer_name']->renderError(); ?></label></li>
                        <li>Old Balance</li>
                    </ul>
                    <ul class="rightList">
                        <li>.</li>
                        <li><?php echo $form['old_balance']->render(array('style'=>'width: 72%;')); ?></strong>
                        <label for="title_id" generated="true" class="error"><?= $form['old_balance']->renderError(); ?></label></li>
                    </ul>
                </div>

                <div class="cLine"></div>

                <div class="orderRow">
                    <ul class="leftList">
                        <li><strong>Shipping Address: </strong></li><?= ($form['shipping_address']->hasError())?'<br>':''; ?>
                        <li><strong>Billing Address: </strong></li><?= ($form['billing_address']->hasError())?'<br>':''; ?>
                        <li><strong>Email: </strong></li><?= ($form['email']->hasError())?'<br>':''; ?>
                        <li><strong>Payment Method: </strong></li><?= ($form['payment_method']->hasError())?'<br>':''; ?>
                        <li><strong>Payment History: </strong></li><?= ($form['payment_history']->hasError())?'<br>':''; ?>
                        <li><strong>Notes: </strong></li><?= ($form['notes']->hasError())?'<br>':''; ?>
                    </ul>
                    <ul class="leftList" style="padding-left: 75px;">
                        <li><?php echo $form['shipping_address']->render(array()); ?><label for="title_id" generated="true" class="error"><?= $form['shipping_address']->renderError(); ?></label></li>
                        <li><?php echo $form['billing_address']->render(array()); ?><label for="title_id" generated="true" class="error"><?= $form['billing_address']->renderError(); ?></label></li>
                        <li><?php echo $form['email']->render(array()); ?><label for="title_id" generated="true" class="error"><?= $form['email']->renderError(); ?></label></li>
                        <li><?php echo $form['payment_method']->render(array()); ?><label for="title_id" generated="true" class="error"><?= $form['payment_method']->renderError(); ?></label></li>
                        <li><?php echo $form['payment_history']->render(array()); ?><label for="title_id" generated="true" class="error"><?= $form['payment_history']->renderError(); ?></label></li>
                        <li><?php echo $form['notes']->render(array()); ?><label for="title_id" generated="true" class="error"><?= $form['notes']->renderError(); ?></label></li>
                    </ul>
                </div>
            </div>
        </div>